package common

import (
	"crypto/md5"
	"encoding/hex"
)

func GenerateShareLink(data []byte) (string, error) {
	hash := md5.New()
	hash.Write(data)
	return hex.EncodeToString(hash.Sum(nil)), nil
}
